﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AspNetCs.Common;

public partial class CheckCode : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Buffer = true;
        Response.BufferOutput = false;
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = -1;
        Response.CacheControl = "no-cache";
        Response.Clear();
        //Asp.net 生成验证码方法一
        CreateImage.DrawImage();

        ////Asp.net 生成验证码方法二
        //ValidateNumber imgto = new ValidateNumber();
        //imgto.CreateValidateGraphic(this, imgto.CreateValidateNumber(6));

    }
}
